/*
 * @Description: 
 * @Author: yeeChen
 * @Date: 2022-12-21 16:13:17
 * @LastEditTime: 2022-12-21 16:37:18
 * @LastEditors: yeeChen
 */

const express = require('express')
const app = express()
const customerParmer = require('./11.自定义解析json字符串中间件')
app.use(customerParmer)

app.post('/book', function (req, res) {
    res.send(req.body)
})

app.listen(80, () => {
    console.log('express running at http://127.0.0.1');
})